import yaml



def readConfig(file_path,key):
    with open(file_path, 'r') as file:
        config_data = yaml.safe_load(file)
    return config_data[key]


# ip=readConfig("../config/dbConfig.yaml","IP")
# print(ip)
